﻿using UnityEngine;
using System.Collections;

namespace UI
{
    public class UIActivitySmallIcon : MonoBehaviour
    {
        public UISprite enableIcon;
        public UISprite disableIcon;


        public void Init(ActivityType at)
        {
            switch (at)
            {
                case ActivityType.EveryDaySign:
                    enableIcon.spriteName  = @"UI_item_tab_38_b";
                    disableIcon.spriteName = @"UI_item_tab_38_a";
                    break;
                case ActivityType.AsunaKitchen:
                    enableIcon.spriteName  = @"UI_item_tab_37_b";
                    disableIcon.spriteName = @"UI_item_tab_37_a";
                    break;
                case ActivityType.FirstRecharge:
                    enableIcon.spriteName  = @"UI_item_tab_36_b";
                    disableIcon.spriteName = @"UI_item_tab_36_a";
                    break;
                case ActivityType.LoginAward:
                    enableIcon.spriteName  = @"UI_item_tab_34_b";
                    disableIcon.spriteName = @"UI_item_tab_34_a";
                    break;
                case ActivityType.RechargeSurprise:
                case ActivityType.CostTotal:
                case ActivityType.RechargeTotal:
                    enableIcon.spriteName  = @"UI_item_tab_33_b";
                    disableIcon.spriteName = @"UI_item_tab_33_a";
                    break;
                case ActivityType.OpenServerRace:
                    enableIcon.spriteName  = @"UI_item_tab_35_b";
                    disableIcon.spriteName = @"UI_item_tab_35_a";
                    break;
                case ActivityType.MonthCard:
                    enableIcon.spriteName = @"UI_item_tab_42_b";
                    disableIcon.spriteName = @"UI_item_tab_42_a";
                    break;
                case ActivityType.VIPBenefits:
                    enableIcon.spriteName = @"UI_item_tab_43_b";
                    disableIcon.spriteName = @"UI_item_tab_43_a";
                    break;
                case ActivityType.BattleRace:
                    enableIcon.spriteName = @"UI_item_tab_15_b";
                    disableIcon.spriteName = @"UI_item_tab_15_a";
                    break;
                case ActivityType.RobTrea:
                    enableIcon.spriteName = @"UI_item_tab_49_b";
                    disableIcon.spriteName = @"UI_item_tab_49_a";
                    break;
                case ActivityType.PrizeTask:
                    enableIcon.spriteName = @"UI_item_tab_48_b";
                    disableIcon.spriteName = @"UI_item_tab_48_a";
                    break;
                case ActivityType.PrizeBoss:
                    enableIcon.spriteName = @"UI_item_tab_52_b";
                    disableIcon.spriteName = @"UI_item_tab_52_a";
                    break;
                case ActivityType.MainCopy:
                    enableIcon.spriteName = @"UI_item_tab_39_b";
                    disableIcon.spriteName = @"UI_item_tab_39_a";
                    break;
               
                case ActivityType.HalfDiscountSale:
                    enableIcon.spriteName = @"UI_item_tab_50_b";
                    disableIcon.spriteName = @"UI_item_tab_50_a";
                    break;
                case ActivityType.DiscountSale:
                    enableIcon.spriteName = @"UI_item_tab_29_b";
                    disableIcon.spriteName = @"UI_item_tab_29_a";
                    break;
                case ActivityType.AincradStars:
                    enableIcon.spriteName = @"UI_item_tab_55_b";
                    disableIcon.spriteName = @"UI_item_tab_55_a";
                    break;
                case ActivityType.CopyBenefits:
                case ActivityType.WarriorWeightImprove:
                    enableIcon.spriteName = @"UI_item_tab_47_b";
                    disableIcon.spriteName = @"UI_item_tab_47_a";
                    break;
                case ActivityType.OpenSeverMoney:
                    enableIcon.spriteName = @"UI_item_tab_51_b";
                    disableIcon.spriteName = @"UI_item_tab_51_a";
                    break;
                case ActivityType.OpenHappy:
                    enableIcon.spriteName = @"UI_item_tab_58_b";
                    disableIcon.spriteName = @"UI_item_tab_58_a";
                    break;
                case ActivityType.Congratulation:
                    enableIcon.spriteName = @"UI_item_tab_57_b";
                    disableIcon.spriteName = @"UI_item_tab_57_a";
                    break;
                case ActivityType.TimeLimitExchange:
                    enableIcon.spriteName = @"UI_item_tab_56_b";
                    disableIcon.spriteName = @"UI_item_tab_56_a";
                    break;
                case ActivityType.TimeLimitSail:
                    enableIcon.spriteName = @"UI_item_tab_56_b";
                    disableIcon.spriteName = @"UI_item_tab_56_a";
                    break;
                case ActivityType.Festival:
                    enableIcon.spriteName = @"UI_item_tab_53_b";
                    disableIcon.spriteName = @"UI_item_tab_53_a";
                    break;
                case ActivityType.Update:
                    enableIcon.spriteName = @"UI_item_tab_54_b";
                    disableIcon.spriteName = @"UI_item_tab_54_a";
                    break;
                case ActivityType.fortuneCat:
                    enableIcon.spriteName = @"UI_item_tab_60_b";
                    disableIcon.spriteName = @"UI_item_tab_60_a";
                    break;
                case ActivityType.continueRechargeGift:
                    enableIcon.spriteName = @"UI_item_tab_29_b";
                    disableIcon.spriteName=@"UI_item_tab_29_a";
                    break;
                case ActivityType.WarriorRescruitTimes:
                    enableIcon.spriteName = @"UI_item_tab_29_b";
                    disableIcon.spriteName = @"UI_item_tab_29_a";
                    break;
                case ActivityType.CollectionWarrior:
                case ActivityType.KaiGongActivity:
                    enableIcon.spriteName = @"UI_item_tab_23_b";
                    disableIcon.spriteName = @"UI_item_tab_23_a";
                    break;

            }
        }

        public void Actived(bool actived)
        {
            enableIcon.gameObject.SetActive(actived);
            disableIcon.gameObject.SetActive(!actived);
        }
    }
}
